package com.allo2o.shared.util;

/**
 * 定义常量值
 * 
 * @author 张攀
 *
 */
public class ConstValue {

	public static final String NULLDEFAULTVALUE = "N/A"; // 默认空值

	public static final long DEFAULTUSERID = 0; // 默认用户id

	public static final String SUCCESS = "success"; // 成功标识

	public static final String FAIL = "fail"; // 失败标识

	public static final int DEFAULTSTATUS = 1; // 默认的状态值

	public static enum USERTYPE { // 用户类型
		COMMONUSER(1), // 普通用户
		AUTHUSER(2), // 认证用户
		DIAMONDUSER(3); // 砖石用户

		private int type;

		private USERTYPE(int type) {
			this.type = type;
		}

		public int getType() {
			return type;
		}

		public void setType(int type) {
			this.type = type;
		}
	};

	/**
	 * 图片类型
	 * 
	 */
	public static enum PHOTOTYPE {
		/**
		 * 商品图片
		 */
		PRODUCTPHOTO(1),
		/**
		 * 门店图片
		 */
		COMPANYPHOTO(2);

		private int type;

		private PHOTOTYPE(int type) {
			this.type = type;
		}

		public int getType() {
			return type;
		}

		public void setType(int type) {
			this.type = type;
		}
	};

	/**
	 * 公司图片类型
	 * 
	 * @zsl
	 *
	 */
	public static enum CompanyPhotoType {
		/**
		 * 证件
		 */
		BUSINESSLICENSE("1"),
		/**
		 * 门面
		 */
		BUSINESSHEAD("2"),
		/**
		 * 店内
		 */
		BUSINESSHEADINTO("3"),
		
		/**
		 * 身份证正面
		 */
		IDCARDF("4"),
		/**
		 * 身份证反面
		 */
		IDCARDO("5"),
		/**
		 * 其它
		 */
		OTHE("6");

		private String type;

		private CompanyPhotoType(String type) {
			this.type = type;
		}

		public String getType() {
			return type;
		}

		public void setType(String type) {
			this.type = type;
		}
	};

	public static enum ORDERSTATUS { // 订单状态
		UNPAY(0), // 未支付状态
		PAYED(1), // 已经支付状态
		DEL(2); // 删除状态

		private int type;

		private ORDERSTATUS(int type) {
			this.type = type;
		}

		public int getType() {
			return type;
		}

		public void setType(int type) {
			this.type = type;
		}
	};

	public static final String NOPASS = "nopass"; // 无账户登录标识

	public static final String SOLR_SORT_DESC = "DESC"; // solr降序

	public static final String SOLR_SORT_ASC = "ASC"; // solr升序

	public static enum SOLR_SIGNS { // 对应solr中的signs字段
		SOLR_SEARCH_WORD("searchWord"), SOLR_PRODUCT("product"), SOLR_COMPANY(
				"company"), SOLR_PHOTO("photo"), SOLR_USER("pages"), SOLR_COMPANY_PHOTO(
				"companyPhoto"), SOLR_PRODUCT_PHOTO("productPhoto");

		private String signs;

		private SOLR_SIGNS(String signs) {
			this.signs = signs;
		}

		public String getSigns() {
			return signs;
		}

		public void setSigns(String signs) {
			this.signs = signs;
		}
	};

	/**
	 * 审计状态
	 * 
	 * @zsl
	 *
	 */
	public static enum AuditStatus {
		/**
		 * 异常
		 */
		ABNORMAL(-1),
		/**
		 * 审核
		 */
		AUDIT(1),
		/**
		 * 屏蔽
		 */
		REJECT(2);

		private int status;

		private AuditStatus(int status) {
			this.status = status;
		}

		public int getStatus() {
			return status;
		}

		public void setStatus(int status) {
			this.status = status;
		}

	};

	/**
	 * 公司状态
	 *
	 */
	public static enum COMPANYSTATUS {
		/**
		 * 异常
		 */
		ABNORMAL(-1),
		/**
		 * 删除
		 */
		DELETE(0),
		/**
		 * 正常
		 */
		NORMAL(1),
		/**
		 * 审核
		 */
		AUDIT(2),
		/**
		 * 驳回
		 */
		REJECT(3),
		/**
		 * 屏蔽
		 */
		BLOCK(4);

		private int status;

		private COMPANYSTATUS(int status) {
			this.status = status;
		}

		public int getStatus() {
			return status;
		}

		public void setStatus(int status) {
			this.status = status;
		}
	};

}
